<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
            #red {
                position: absolute;
                left: -99999px;
                top: -99999px;
            }
        </style>
    </head>
    <body>
        <div id="red" style="background: red; width: 0; height: 0"></div>
        <div id="green" style="width: 100px; height: 100px; background: green"></div>
        <script>
            let red = document.querySelector('#red');
            red.addEventListener('click', function () {
                console.log('1111');
            });
        </script>
    </body>
</html>
